﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Main1.Master" AutoEventWireup="true" CodeBehind="Award.aspx.cs" Inherits="ProjectSem40701.Award" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div class="content_tab">
		<div class="content_tab_title"><span>Giải thưởng</span></div>
		<div class="content_tab1">
               <asp:GridView ID="GridView1" runat="server" AllowPaging="True" 
                AutoGenerateColumns="False" DataKeyNames="AwardID" 
                DataSourceID="ObjectDataSource1" 
                onpageindexchanging="GridView1_PageIndexChanging" GridLines="None" 
                   ShowHeader="False">
                <Columns>
                <asp:TemplateField>
                        <ItemTemplate>
                        <table border="0" cellpadding="0" cellspacing="0" 
                                    style="border-width: 0px; width: 100%">
                                    <tr>
                                        <td align="left" style="padding-top: 5px; padding-left: 5px" valign="top">
                                            <asp:Image ID="imgArticle" runat="server" 
                                                ImageUrl='<%# Eval("AwardImage", "~/images/{0}") %>' Width="160px" 
                                                ondatabinding="imgAward_DataBinding" />
                                        </td>
                                        <td align="left" style="padding-left: 7px; padding-top: 5px;" valign="top">
                                            <asp:Label ID="lblDesc" runat="server" Text='<%# Eval("AwardDescription") %>' 
                                                ondatabinding="lblDesc_DataBinding"></asp:Label>
                                            <br />
                                            &nbsp;</td>
                                    </tr>
                                    <tr style="border-width: 0px;">
                                        <td style="border-width: 0px;">
                                            &nbsp;</td>
                                        <td align="right" style="border-width: 0px; padding-right: 10px;">
                                            <span ID="award-title">
                                            <asp:HyperLink ID="lblDetail" runat="server" 
                                                NavigateUrl='<%# Eval("AwardID", "AwardDetail.aspx?AwardID={0}") %>'>Chi 
                                            tiết »</asp:HyperLink>
                                            </span>
                                        </td>
                                    </tr>
                                </table>
                                </ItemTemplate>
                    </asp:TemplateField>
                </Columns>
            </asp:GridView>

		       <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" 
                   OldValuesParameterFormatString="original_{0}" 
                   SelectMethod="Get_tbl_Article_Select_Top4_Active_Current" 
                   TypeName="ProjectSem40701.MainDataset.AwardTableAdapters.tbl_Award_Select_Top4_Active_CurrentTableAdapter">
               </asp:ObjectDataSource>

		</div>
	</div>
</asp:Content>
